<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<link rel="stylesheet" href="./dangdang.css">

<body>
    <header>
        <div><img src="./dd_logo.jpg" alt=""></div>
        <div><input type="button" value="关闭" onclick="javascript:window.close()"></div>
    </header>
    <div class="content1">
        <div><input type="checkbox" name="quanxun" id="quanxuan1" onchange="xuan('quanxuan1')">全选</div>
        <div>商品信息</div>
        <div>单价（元）</div>
        <div>数量</div>
        <div>金额（元）</div>
        <div>操作</div>
    </div>
    <div class="content">
        <p><input type="checkbox" name="" id="dangdang" onchange="xuan1('dangdang')">当当自营</p>
        <div class="content-body">
            <div class="content-body-header">
                <input type="checkbox" name="quanxun" id="dangdang1" onchange="sum()">
                <img src="./dd_bys.PNG" alt="">
            </div>
            <div>白岩松：白说</div>
            <div>￥21.90</div>
            <div>
                <input type="button" value="+" onclick="jia('number1','numberSum1',21.90)">
                <input type="text" value="1" id="number1" onchange="number('number1','numberSum1',21.90)">
                <input type="button" value="-" onclick="jian('number1','numberSum1',21.90)">
            </div>
            <div id="numberSum1">￥21.90</div>
            <div class="content-body-footer">
                <a href="javascript:alert('已收藏')">移入收藏</a>
                <a href="javascript:confirm('是否删除？')">删除</a>
            </div>
        </div>
        <div class="content-body">
            <div class="content-body-header">
                <input type="checkbox" name="quanxun" id="dangdang2" onchange="sum()">
                <img src="./dd_dssd.PNG" alt="">
            </div>
            <div>岛上书店</div>
            <div>￥24.00</div>
            <div>
                <input type="button" value="+" onclick="jia('number2','numberSum2',24.00)">
                <input type="text" value="1" id="number2" onchange="number('number2','numberSum2',24.00)">
                <input type="button" value="-" onclick="jian('number2','numberSum2',24.00)">
            </div>
            <div id="numberSum2">￥24.00</div>
            <div class="content-body-footer">
                <a href="javascript:alert('已收藏')">移入收藏</a>
                <a href="javascript:confirm('是否删除？')">删除</a>
            </div>
        </div>
    </div>
    <footer>
        <div class="footer-left">
            <div><input type="checkbox" name="quanxun" id="quanxuan2" onchange="xuan('quanxuan2')">全选</div>
            <div><a href="javascript:confirm('是否删除？')">批量删除</a></div>
            <div>已选择&nbsp;<span id="goods">0</span>&nbsp;件商品</div>
        </div>
        <div class="footer-right">
            <div>
                <p>总计（不含运费）：<span id="sum">￥45.90</span></p>
                <p>已节省：<span>￥0</span></p>
            </div>
            <div><input type="button" value="结算" onclick="javascript:window.open()"></div>
        </div>
    </footer>
    <script src="./dangdang.js"></script>
</body>

</html>